/**
 * 
 */
package com.gr.experimental.model.impl.distr.operators;

/**
 * @author Karol Banczyk
 *
 */
public class Utils {

	public static Class<?> assertNumberType(Class<?> argumentType) {
		if (!Double.class.isAssignableFrom(argumentType)
				&&
			!Long.class.isAssignableFrom(argumentType)	
				&&
			!Integer.class.isAssignableFrom(argumentType)	
				) {
			throw new AssertionError("Class " + argumentType + " should be one of: Double, Long, Integer." );
		}
		return argumentType;
	}

}
